From: Carlos Garnacho Date: Thu, 10 Aug 2017 19:27:25 +0000 (+0200) Subject: main: Load OSK layouts resource X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~89 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a1ce0da9e778efdb6cb5a15b2d5f51cc6bd14fc8;p=gnome-shell.git main: Load OSK layouts resource --- diff --git a/js/ui/main.js b/js/ui/main.js index d581fd481..0f53edf48 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -85,6 +85,7 @@ let _defaultCssStylesheet = null; let _cssStylesheet = null; let _a11ySettings = null; let _themeResource = null; +let _oskResource = null; function _sessionUpdated() { if (sessionMode.isPrimary) @@ -148,6 +149,7 @@ function _initializeUI() { Shell.AppUsage.get_default(); reloadThemeResource(); + _loadOskLayouts(); _loadDefaultStylesheet(); // Setup the stage hierarchy early @@ -309,6 +311,11 @@ function reloadThemeResource() { _themeResource._register(); } +function _loadOskLayouts() { + _oskResource = Gio.Resource.load(global.datadir + '/gnome-shell-osk-layouts.gresource'); + _oskResource._register(); +} + /** * loadTheme: *